/*
 * Copyright (c) 2015-2018 Sfkj Science And Technology Co.,Ltd.
 * All Rights Reserved.
 * This software is the confidential and proprietary information of
 * Sfkj Science And Technology Co.,Ltd.
 * ("Confidential Information").You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Sfkj.
 */
package com.sfkj.walk.query.activity;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;

interface ActivityMemberRepository extends MongoRepository<ActivityMember, String>, QueryDslPredicateExecutor<ActivityMember> {

    ActivityMember findByActivityIdAndMemberId(String activityId, String memberId);

    long countByActivityId(String activityId);

}